home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / miffypuzzle.swf / scripts / frame_1 / PlaceObject2_4_484 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2007-09-27  |  1KB  |  55 lines

  1. onClipEvent(enterFrame){
  2.    _root.time = int(getTimer() / 100);
  3.    var checkAll = 0;
  4.    i = 0;
  5.    while(i < 16)
  6.    {
  7.       checkAll += Number(_root.checkAllArray[i]);
  8.       i++;
  9.    }
  10.    if(checkAll == 16 && (_root.firstCheckAll == 0 || _root.firstCheckAll eq ""))
  11.    {
  12.       i = 1;
  13.       while(i < 17)
  14.       {
  15.          if(i <= 9)
  16.          {
  17.             var thePuzzlePiece = "_root.p00" + i + ".whitelines";
  18.             tellTarget(thePuzzlePiece)
  19.             {
  20.                _visible = 0;
  21.             }
  22.             var thePuzzlePiece = "_root.p00" + i + ".blackLines";
  23.             tellTarget(thePuzzlePiece)
  24.             {
  25.                _visible = 0;
  26.             }
  27.          }
  28.          else
  29.          {
  30.             var thePuzzlePiece = "_root.p0" + i + ".whitelines";
  31.             tellTarget(thePuzzlePiece)
  32.             {
  33.                _visible = 0;
  34.             }
  35.             var thePuzzlePiece = "_root.p0" + i + ".blackLines";
  36.             tellTarget(thePuzzlePiece)
  37.             {
  38.                _visible = 0;
  39.             }
  40.          }
  41.          i++;
  42.       }
  43.       _root.firstCheckAll = 1;
  44.       _root.timeOld = _root.time + 10;
  45.    }
  46.    if(_root.firstCheckAll == 1)
  47.    {
  48.       if(_root.time >= _root.timeOld)
  49.       {
  50.          _root.M_nextLevelTXT._visible = 1;
  51.          _root.firstCheckAll = 2;
  52.       }
  53.    }
  54. }
  55.